from django.urls import path
from app01 import views

app_name = 'app01'
urlpatterns = [
    path('', views.jump_to_index, name='jump_to_index'),
    path('index/', views.index, name='index'),
    path('index/create_case/', views.create_case, name='create_case'),
    path('index/edit_case/', views.edit_case, name='edit_case'),
    path('index/search_case/', views.search_case, name='search_case'),
    path('index/generate_case/', views.generate_case, name='generate_case'),
    path('index/multi_delete/', views.multi_delete, name='multi_delete'),
    # 新增功能路由及其对应的视图函数
    path('new_page/', views.new_page, name='new_page'),
    path('new_page/create_case/', views.new_page_create_case, name='new_page_create_case'),
    path('new_page/edit_case/', views.new_page_edit_case, name='new_page_edit_case'),
    path('new_page/search_case/', views.new_page_search_case, name='new_page_search_case'),
    path('new_page/generate_case/', views.new_page_generate_case, name='new_page_generate_case'),
    path('new_row/', views.new_row, name='new_row'),
    path('new_row_by_ai/', views.new_row_by_ai, name='new_row_by_ai'),
    path('new_page/export_case/', views.new_page_export_excel, name='new_page_export_excel'),
    path('new_page/delete/<int:case_id>/', views.new_page_delete, name='new_page_delete'),
    path('new_page/search_case/search_result_export/', views.new_page_search_result_export,
         name='new_page_search_result_export'),
    path('new_page/multi_delete/', views.new_page_multi_delete, name='new_page_multi_delete'),

    # 搜索功能路由及其对应的视图函数
    path('search_page/', views.search_page, name='search_page'),
    path('search_page/create_case/', views.search_page_create_case, name='search_page_create_case'),
    path('search_page/edit_case/', views.search_page_edit_case, name='search_page_edit_case'),
    path('search_page/search_case/', views.search_page_search_case, name='search_page_search_case'),
    path('search_page/generate_case/', views.search_page_generate_case, name='search_page_generate_case'),
    path('search_page/generate_case_by_ai/', views.search_page_generate_case_by_ai, name='search_page_generate_case_by_ai'),
    path('search_page/generate_case/iframe/', views.search_page_new_row, name='search_page_new_row'),
    path('search_page/export_case/', views.search_page_export_excel, name='search_page_export_excel'),
    path('search_case/search_result_export/', views.search_page_search_result_export,
         name='search_page_search_result_export'),
    path('search_page/multi_delete/', views.search_page_multi_delete, name='search_page_multi_delete'),

    # 导入功能路由及其对应的视图函数
    path('page_import/', views.page_import, name='page_import'),
    path('page_import/create_case/', views.page_import_create_case, name='page_import_create_case'),
    path('page_import/edit_case/', views.page_import_edit_case, name='page_import_edit_case'),
    path('page_import/search_case/', views.page_import_search_case, name='page_import_search_case'),
    path('page_import/generate_case/', views.page_import_generate_case, name='page_import_generate_case'),
    path('page_import/new_row/', views.page_import_new_row, name='page_import_new_row'),
    path('page_import/export_case/', views.page_import_export_excel, name='page_import_export_excel'),
    path('page_import/search_result_export/', views.page_import_search_result_export,
         name='page_import_search_result_export'),
    path('page_import/multi_delete/', views.page_import_multi_delete, name='page_import_multi_delete'),

    # 导出功能路由及其对应的视图函数
    path('export_page/', views.export_page, name='export_page'),
    path('export_page/create_case/', views.export_page_create_case, name='export_page_create_case'),
    path('export_page/edit_case/', views.export_page_edit_case, name='export_page_edit_case'),
    path('export_page/search_case/', views.export_page_search_case, name='export_page_search_case'),
    path('export_page/new_row/', views.export_page_new_row, name='export_page_new_row'),
    path('export_page/generate_case/', views.export_page_generate_case, name='export_page_generate_case'),
    path('export_page/export_case/', views.export_page_export_excel, name='export_page_export_excel'),
    path('export_page/search_result_export/', views.export_page_search_result_export,
         name='export_page_search_result_export'),
    path('export_page/multi_delete/', views.export_page_multi_delete, name='export_page_multi_delete'),

    # 删除功能路由及其对应的视图函数
    path('delete_page/', views.delete_page, name='delete_page'),
    path('delete_page/create_case/', views.delete_page_create_case, name='delete_page_create_case'),
    path('delete_page/edit_case/', views.delete_page_edit_case, name='delete_page_edit_case'),
    path('delete_page/search_case/', views.delete_page_search_case, name='delete_page_search_case'),
    path('delete_page/generate_case/', views.delete_page_generate_case, name='delete_page_generate_case'),
    path('delete_page/new_row/', views.delete_page_new_row, name='delete_page_new_row'),
    path('delete_page/delete/<int:case_id>/', views.delete_page_delete, name='delete_page_delete'),
    path('delete_page/export_case/', views.delete_page_export_excel, name='delete_page_export_excel'),
    path('delete_page/search_result_export/', views.delete_page_search_result_export,
         name='delete_page_search_result_export'),
    path('delete_page/multi_delete/', views.delete_page_multi_delete, name='delete_page_multi_delete'),

    # 编辑页面路由及其对应的视图函数
    path('edit_page/', views.edit_page, name='edit_page'),
    path('edit_page/create_case/', views.edit_page_create_case, name='edit_page_create_case'),
    path('edit_page/edit_case/', views.edit_page_edit_case, name='edit_page_edit_case'),
    path('edit_page/search_case/', views.edit_page_search_case, name='edit_page_search_case'),
    path('edit_page/generate_case/', views.edit_page_generate_case, name='edit_page_generate_case'),
    path('edit_page/generate_case/new_row', views.edit_page_new_row, name='edit_page_new_row'),
    path('edit_page/export_case/', views.edit_page_export_excel, name='edit_page_export_excel'),
    path('edit_page/delete/<int:case_id>/', views.edit_page_delete, name='edit_page_delete'),
    path('edit_page/search_case/search_result_export/', views.edit_page_search_result_export,
         name='edit_page_search_result_export'),
    path('edit_page/multi_delete/', views.edit_page_multi_delete, name='edit_page_multi_delete'),

    # 导入功能路由及其对应的视图函数
    # path('page_import/', views.page_import, name='page_import'),
    # path('page_import/create_case/', views.page_import_create_case, name='page_import_create_case'),
    # path('page_import/edit_case/', views.page_import_edit_case, name='page_import_edit_case'),
    # path('page_import/search_case/', views.page_import_search_case, name='page_import_search_case'),
    # path('page_import/generate_case/', views.page_import_generate_case, name='page_import_generate_case'),
    # 导出功能路由及其对应的视图函数
    # path('export_page/', views.export_page, name='export_page'),
    # path('export_page/create_case/', views.export_page_create_case, name='export_page_create_case'),
    # path('export_page/edit_case/', views.export_page_edit_case, name='export_page_edit_case'),
    # path('export_page/search_case/', views.export_page_search_case, name='export_page_search_case'),
    # path('export_page/generate_case/', views.export_page_generate_case, name='export_page_generate_case'),
    # 常用组件路由及其对应的视图函数
    path('component/', views.component, name='component'),
    path('component/create_case/', views.component_create_case, name='component_create_case'),
    path('component/edit_case/', views.component_edit_case, name='component_edit_case'),
    path('component/search_case/', views.component_search_case, name='component_search_case'),
    path('component/generate_case/', views.component_generate_case, name='component_generate_case'),
    path('component/generate_case/new_row', views.component_new_row, name='component_new_row'),
    path('component/export_case/', views.component_export_excel, name='component_export_excel'),
    path('component/delete/<int:case_id>/', views.component_delete, name='component_delete'),
    path('component/search_case/search_result_export/', views.component_search_result_export,
         name='component_search_result_export'),
    path('component/multi_delete/', views.component_multi_delete, name='component_multi_delete'),

    path('my_admin/', views.jump_to_admin, name='my_admin')
]
